package com.weir.weirdb.user.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;

/**
 * <p>
 * 字典类型
 * </p>
 *
 * @author weir
 * @since 2018-11-27
 */
public class SysDictionaryType extends Model<SysDictionaryType> {

    private static final long serialVersionUID = 1L;

    /**
     * 字典类型id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 名称
     */
    private String name;

    /**
     * 代码
     */
    private String code;

    /**
     * 是否树型
     */
    private Boolean isTree;

    /**
     * 系统id
     */
    private Integer domainId;

    /**
     * 是否可用
     */
    private Boolean isEnable;

    /**
     * 链主代码
     */
    private String clientCode;

    /**
     * 维护交易代码
     */
    private String businessCode;

    /**
     * 创建者
     */
    private Long createUserId;

    /**
     * 创建者账号
     */
    private String createUsername;

    /**
     * 创建时间
     */
    private LocalDateTime createTime;

    /**
     * 修改者
     */
    private Long updateUserId;

    /**
     * 修改者账号
     */
    private String updateUsername;

    /**
     * 更新日期
     */
    private LocalDateTime updateTime;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public Boolean getTree() {
        return isTree;
    }

    public void setTree(Boolean isTree) {
        this.isTree = isTree;
    }

    public Integer getDomainId() {
        return domainId;
    }

    public void setDomainId(Integer domainId) {
        this.domainId = domainId;
    }

    public Boolean getEnable() {
        return isEnable;
    }

    public void setEnable(Boolean isEnable) {
        this.isEnable = isEnable;
    }

    public String getClientCode() {
        return clientCode;
    }

    public void setClientCode(String clientCode) {
        this.clientCode = clientCode;
    }

    public String getBusinessCode() {
        return businessCode;
    }

    public void setBusinessCode(String businessCode) {
        this.businessCode = businessCode;
    }

    public Long getCreateUserId() {
        return createUserId;
    }

    public void setCreateUserId(Long createUserId) {
        this.createUserId = createUserId;
    }

    public String getCreateUsername() {
        return createUsername;
    }

    public void setCreateUsername(String createUsername) {
        this.createUsername = createUsername;
    }

    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }

    public Long getUpdateUserId() {
        return updateUserId;
    }

    public void setUpdateUserId(Long updateUserId) {
        this.updateUserId = updateUserId;
    }

    public String getUpdateUsername() {
        return updateUsername;
    }

    public void setUpdateUsername(String updateUsername) {
        this.updateUsername = updateUsername;
    }

    public LocalDateTime getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(LocalDateTime updateTime) {
        this.updateTime = updateTime;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "SysDictionaryType{" +
        "id=" + id +
        ", name=" + name +
        ", code=" + code +
        ", isTree=" + isTree +
        ", domainId=" + domainId +
        ", isEnable=" + isEnable +
        ", clientCode=" + clientCode +
        ", businessCode=" + businessCode +
        ", createUserId=" + createUserId +
        ", createUsername=" + createUsername +
        ", createTime=" + createTime +
        ", updateUserId=" + updateUserId +
        ", updateUsername=" + updateUsername +
        ", updateTime=" + updateTime +
        "}";
    }
}
